package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCommentService {
    /**
     * 分页
     * @param qo
     * @return
     */
    PageInfo query(StrategyQueryObject qo);

    /**
     * 新增和编辑
     * @param strategyComment
     */
    void saveOrUpdate(StrategyComment strategyComment);


    List<StrategyComment> listAll();

    StrategyComment get(Long id);

    void saveOrUpdate(StrategyComment comment, String[] tags);

    int selectStrategyCommentsNums(Long userId);
}

